package com.aynu.admin.controller;

import com.aynu.admin.domain.CommonResponse;
import com.aynu.admin.domain.vo.DynamicSystemInfo;
import com.aynu.admin.domain.vo.StaticSystemInfo;
import com.aynu.admin.service.base.ISystemService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system")
public class SystemController {
    @Resource
    private ISystemService systemService;

    @GetMapping("/static")
    public CommonResponse<StaticSystemInfo> staticSystemInfo() {
        return systemService.staticSystemInfo();
    }
    @GetMapping("/dynamic")
    public CommonResponse<DynamicSystemInfo> dynamicSystemInfo(){
        return systemService.dynamicSystemInfoList();
    }
}
